<?php
$sql = "
create procedure myproce3(out score int)
begin
set score=100;
end;
";
mysql_query($sql);//创建一个myproce3的存储过程

$sql = "call test.myproce3(@score);";
mysql_query($sql);//调用myproce3的存储过程

$result = mysql_query('select @score;');
$array = mysql_fetch_array($result);
echo '<pre>';print_r($array);

?>